var LunBo = function(config) {
	this.ele = document.getElementById(config.id);
	this.images = config.images;
	this.speed = config.speed;
}
LunBo.prototype = {
	init: function() {
		var jj=this.images;
		var en = 0;
		var img = document.createElement("img");

		img.src = this.images[en];

		img.width = "1000";
		img.height = "600";
		this.ele.appendChild(img);
		var left = document.createElement("span");
		left.innerHTML = "<";
		left.style.fontSize = "72px";
		left.style.lineHeight = "72px";
		left.style.display = "inline-block";
		left.style.position = "absolute";
		left.style.top = "264px";
		left.style.cursor = "pointer";
		left.style.left = "0";
		left.style.color="white"
		left.onclick = function() {
			en--;
			if(en < 0) en = 4;
			img.src = jj[en];

		};
		var right = document.createElement("span");
		right.innerHTML = ">";
		right.style.fontSize = "72px";
		right.style.lineHeight = "72px";
		right.style.display = "inline-block";
		right.style.position = "absolute";
		right.style.top = "264px";
		right.style.right = "0";
		right.style.color="white";
		right.style.cursor = "pointer";
		right.onclick = function() {
			en++;
			if(en>5) en = 1;
			img.src = jj[en];
		}
		var index = document.createElement("span");
		index.style.display = "inline-block";
		index.style.position = "absolute";
		index.style.left = "320px";
		index.style.bottom = "0";
		for(var i = 1; i < 6; i++) {
			var sp = document.createElement("span");
			sp.innerHTML = i;
			sp.style.display = "inline-block";
			sp.style.borderRadius = "50%";
			sp.style.background = "white";
			sp.style.position = "relative"
			sp.style.margin = "0 24px";
			sp.style.width = "24px"
			sp.style.lineHeight = "24px";
			sp.style.textAlign = "center";
			sp.style.fontSize = "20px";
			sp.style.height = "24px";
			sp.style.bottom = "32px";
			sp.style.cursor = "pointer";
			index.appendChild(sp);
		}
		this.ele.appendChild(index);
		this.ele.appendChild(right);
		this.ele.appendChild(left);
	},
//	 css:function(ys)
}